home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CColorPicker 1.0 / CColorPicker.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-30  |  863 b   |  42 lines  |  [TEXT/KAHL]

  1. /***
  2.  * CColorPicker.h
  3.  *
  4.  *        by Bernie Bernstein (bernard@cs.colorado.edu)
  5.  *
  6.  *        SUPERCLASS = CPane
  7.  *
  8.  *        pick a color when this control is clicked on.
  9.  *        display its color.
  10.  ***/
  11.  
  12. #define _H_CColorPicker
  13.  
  14. #include <CPane.h>
  15.  
  16. class CColorPicker : public CPane
  17. {
  18. protected:
  19.     Str255        prompt;
  20.     RGBColor    currentColor;
  21.  
  22. public:
  23.  
  24.     void    IColorPicker(CView *anEnclosure, CBureaucrat *aSupervisor,
  25.                             short aWidth, short aHeight, short aHEncl, short aVEncl,
  26.                             SizingOption aHSizing, SizingOption aVSizing);
  27.  
  28.     virtual void    IViewTemp( CView *anEnclosure, CBureaucrat *aSupervisor,
  29.                                 Ptr viewData);
  30.                                 
  31.     virtual void        SetPrompt(ConstStr255Param msg);
  32.     virtual void        SetCurrentColor(RGBColor aColor);
  33.     virtual RGBColor    GetCurrentColor(void);
  34.     
  35.     virtual void    DoClick( Point hitPt, short modifierKeys, long when);
  36.     virtual void    Draw( Rect *area);
  37. };
  38.  
  39.  
  40.  
  41.  
  42.